<p class="Paragraph">In addition to several technical terms, this glossary also explains some of the most important functions that you will come across in programming with <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic.<a name="ende"/></p>
<p class="Paragraph">Click on the desired term, or browse through the alphabetical list of descriptions.</p>
<p class="Paragraph">When converting numbers, <help:productname>%PRODUCTNAME</help:productname> Basic takes country settings into effect. If you have specified a country in your system settings where decimal points in numbers are represented by a comma, and thousand separators are represented by a point, this setting also applies to calculations in <help:productname>%PRODUCTNAME</help:productname> Basic.</p>
<p class="Paragraph">The behavior has an effect on both the implicit conversion ( 1 + "2,3" = 3,3 ) as well as the runtime function <help:link Id="66406">IsNumeric</help:link>. The thousand separator corresponds to the system settings.</p>
</help:to-popup>
<p class="Head2"><a name="farben"/>Colors</p>
<p class="Paragraph">In <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic, colors are generally treated as long integer variables; the return value is also always long integer. When defining properties, colors can also be set in <help:link Id="66436" Eid="rgb" xmlns:help="http://openoffice.org/2000/help">RGB code</help:link> and thus treated as long integer values.</p>
<p class="Paragraph">The pass parameters of a method, which contain the measurement unit information, can be set in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic either as an integer or long integer expression without a defined unit, or as a character string with a defined unit. If such a parameter is passed as an integer or long integer expression, the default unit defined for the active document type in the <span class="T1">Layout</span> tab under <span class="T1">Tools - Options</span> will be used as the measurement unit. If the parameter is passed as a character string with a defined measurement unit, the default setting will be ignored. The following are valid measurement units:</p>
<p class="Paragraph">Millimeter ("20mm"), centimeter ("2.00cm"), inch ("0.79in"), pica and point ("59.9pt").</p>
<p class="Paragraph">For properties, the same applies: parameters can be set with or without a defined measurement unit as a string, or as an integer or long integer. However, for integer or long integer variables, the measurement unit is set according to the default settings. In the Help, a return value is characterized as an integer or long integer expression, depending on the respective variable type. Note that this value can also be returned as a character string.</p>
<p class="Paragraph">This rule is generally valid, unless defined otherwise in the Help. The settings in the <span class="T1">Layout</span> tab do not apply to font sizes or window positioning. Font sizes can also be set either as a long integer variable without a defined unit or with the desired measurement unit. If no unit is specified, the default unit is point. The return value also uses the point unit, regardless of if a string or a numerical value is queried. Window positions are always specified in pixel. To find out which unit is used by the program, please refer to the appropriate topic in the documentation.</p>
<p class="Paragraph">A twip is a screen-independent unit which is used to define the uniform position and size of screen elements on all display systems. A twip is 1/1440th of an inch or 1/20 of a printer's point. There are thus 1440 twips to an inch or about 567 twips to a centimeter.</p>
<p class="Paragraph">Even individual files can be determined worldwide by a URL. This example shows the address of the file autoexec.bat on the C: drive of the computer on which this file is referenced. The name of the computer is missing in this example - <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>if you want to add it, insert it between the second and third slash.</p>
<p class="Paragraph">In <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> you can also enter the path for your files with the backslash "\" as the separator; the application will convert it to the correct URL convention with a slash "/". Since the colon (used by many operating systems to separate the disk drive letter from the next part of the address) already has a different function in a URL address, convention dictates that it is replaced by a vertical line "|" here.</p>
<p class="Paragraph">If a folder name referred to in a URL contains spaces, you should replace these using the syntax for special characters. For example, instead of entering the folder name "My Files," name it "My%20Files". After the percentage sign comes the two-digit hexadecimal ASCII code for a space (decimal 32 = hexadecimal 20).</p>